package com.ndp.fb.rdb.model.productmanage;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.Id;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @Author: Evan on 12/30/2015  14:36.
 * Email: evan.wan@ndpmedia.com
 */
@Setter
@Getter
@NoArgsConstructor
public class ProductManage implements Serializable {
    @Id
    private Long id;
    @Column(value = "product_id")
    private Long prodId;           //根据一定策略生成，并唯一的的ID值，标示唯一的产品
    @Column("product_name")
    private String prodName;         //产品的唯一名称
    @Column(value = "product_type", type = ColumnType.Int)
    private Integer prodType;            //产品类型 1 app  2 website等
    @Column("product_platform")
    private String prodPlatform;     //产品对应的平台，如 Google play,iTunes, website
    @Column("mk_pixel_id")
    private Long mkPixelId;
    @Column("product_url")
    private String prodUrl;          //产品具体的url
    @Column("product_icon")
    private String prodIcon;         //产品的小图标
    //org_id
    private Long orgId;
    //user_id
    private String userId;
    //time_create
    private Long timeCreate;         //long型 时间戳 方便walle转化
    //time_update
    private Long timeUpdate;
    //disable
    private Boolean disable;         //布尔型 true 这个产品停用
    //is_delete
    private Boolean isDelete;        //布尔型 true 标记这个产品删除状态

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public void setIsDelete(Boolean delete) {
        isDelete = delete;
    }
}
